/*
 * @Author: Li Zengkun
 * @Date: 2022-06-18 21:34:32
 * @LastEditors: Li Zengkun
 * @LastEditTime: 2022-06-30 23:05:28
 * @Description: 
 */
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入Font_Awesome
import './assets/font-awesome-4.7.0/css/font-awesome.min.css'
// 引入全局css
import './assets/css/index.css'
// 引入路由
import router from './router.js'
import axios from '@/axiosInstance.js'



function GetQueryString(name) {
    // let that=this
    // window.location.href 获取地址
    let url = window.location.hash
    let p = url.split('?')[1]
    let params = new URLSearchParams(p)
        // console.log(params.get('type')) //1
    return params.get(name)
        // console.log(params.get('id'))   //2
        // ————————————————
        // 版权声明：本文为CSDN博主「倘若hfl」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
        // 原文链接：https://blog.csdn.net/hu104160112/article/details/111355343
}

const app = createApp(App)

app.use(ElementPlus)
    .use(router)

app.mount('#app')

app.config.globalProperties.GetQueryString = GetQueryString;
app.config.globalProperties.$axios = axios;